package com.nan.mapper;

import com.nan.dto.StudentTeacherDTO;
import com.nan.model.Student;
import com.nan.model.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * @Entity com.nan.model.Student
 */
@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    
    /**
     * 根据学生ID查询对应的教师列表
     * @param studentId 学生ID
     * @return 教师列表
     */
    List<Teacher> getTeachersByStudentId(@Param("studentId") Long studentId);

    List<Integer> selectGrouptByClassId(Long id);

    List<Student> getStudentByClassIdAndGroup(Long classId, Integer group);

}




